package com.yanggeng.demo.beginnerguidedemo.activity

import android.os.Bundle
import android.util.Log
import android.view.MotionEvent
import com.yanggeng.demo.beginnerguidedemo.R

class DispatchEventActivity: BaseActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_dispatch_event)
        setTitle(true, "DispatchEvent")
    }

    override fun dispatchTouchEvent(ev: MotionEvent?): Boolean {
        Log.e(TAG, "----------activity dispatchTouchEvent----------")
        return super.dispatchTouchEvent(ev)
    }

    override fun onTouchEvent(event: MotionEvent?): Boolean {
        Log.e(TAG, "-----------activity onTouchEvent-----------")
        return super.onTouchEvent(event)
    }
}